package com.android.gufengmall.bean;

import com.android.gufengmall.gen.CommentBean;
import com.android.gufengmall.gen.InfoConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.util.List;

/**
 * 主页古文化知识适配器数据 - 琴棋书画
 */
@Entity
public class TalentBean {
    @Id(autoincrement = true)
    private Long id;

    private String title;
    private String imgPath;
    private boolean isLike;
    private boolean isCollect;

    @Convert(columnType = String.class,converter = InfoConverter.class)
    private List<CommentBean> mComments;

    @Generated(hash = 375653816)
    public TalentBean(Long id, String title, String imgPath, boolean isLike, boolean isCollect,
            List<CommentBean> mComments) {
        this.id = id;
        this.title = title;
        this.imgPath = imgPath;
        this.isLike = isLike;
        this.isCollect = isCollect;
        this.mComments = mComments;
    }

    @Generated(hash = 1596042231)
    public TalentBean() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isLike() {
        return isLike;
    }

    public void setLike(boolean like) {
        isLike = like;
    }

    public boolean isCollect() {
        return isCollect;
    }

    public void setCollect(boolean collect) {
        isCollect = collect;
    }

    public List<CommentBean> getComments() {
        return mComments;
    }

    public void setComments(List<CommentBean> comments) {
        mComments = comments;
    }

    public boolean getIsLike() {
        return this.isLike;
    }

    public void setIsLike(boolean isLike) {
        this.isLike = isLike;
    }

    public boolean getIsCollect() {
        return this.isCollect;
    }

    public void setIsCollect(boolean isCollect) {
        this.isCollect = isCollect;
    }

    public List<CommentBean> getMComments() {
        return this.mComments;
    }

    public void setMComments(List<CommentBean> mComments) {
        this.mComments = mComments;
    }

    public String getImgPath() {
        return this.imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }
}
